package com.dotflat.application.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "op_application_form")
@Data
@EqualsAndHashCode(callSuper = true)
public class AppForm extends AreableObjectBase {

	@Column(columnDefinition = "int default 0  comment '申请表类型 ：0：托班，1：幼儿园'")
	private Integer applicationType;

	@Column(columnDefinition = " varchar(50)  COMMENT '宝宝姓名'")
	private String name;

	@Column(columnDefinition = " varchar(50)  COMMENT '宝宝昵称'")
	private String nickName = "";

	@Column(columnDefinition = " int default 0  COMMENT '宝宝性别 ：0：女，1：男'")
	private Integer gender;

	@Column(columnDefinition = " varchar(255)  COMMENT '地址'")
	private String address = "";

	@Column(columnDefinition = " datetime COMMENT '宝宝生日'")
	private Date birthday;

	@Column(columnDefinition = " varchar(255)  COMMENT '备注'")
	private String remark = "";

	@Column(columnDefinition = " varchar(512)  COMMENT '照片'")
	private String imgUrl;

	@Column(columnDefinition = "varchar(32) COMMENT '意向园区id'")
	private String areaId;

	@Column(columnDefinition = "varchar(32) COMMENT '微信用户对象id'")
	private String wxUserId;

	@Column(columnDefinition = "varchar(50) COMMENT '名称'")
	private String parentName;

	@Column(columnDefinition = "varchar(50) COMMENT '电话'")
	private String phone;

	@Column(columnDefinition = "varchar(10) COMMENT '关系'")
	private String relation;

	@Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
	@ApiModelProperty("创建人")
	private String createdBy;
}
